package com.example.business.controller;


import com.alibaba.fastjson.JSONObject;
import com.example.business.entity.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试api
 */
@RestController
@RequestMapping(value = "/test")
public class TestController {

    @GetMapping(value = "/test")
    public JSONObject test() {
        return Result.success("api测试成功");
    }
}
